package com.example.demo.dao;

import com.example.demo.core.base.BaseDao;
import com.example.demo.entity.User;

import java.util.Optional;


/**
 * @author yujie
 */
public interface UserDao extends BaseDao<User> {
    /**
     * 通过手机号码确认用户
     * @param phone
     * @return
     */
    Optional<User> findByPhone(String phone);

}
